Algorithms For 2–D Hamming Distance Under Rotations
نویسنده
چکیده
We consider the problem of defining and evaluating the Hamming distance between two– dimensional pattern P [1..m, 1..m] of pixels and two–dimensional text T [1..n, 1..n] of pixels when also rotations of P are allowed. In particular, we are interested in the orientation and location of P that gives the minimum Hamming distance. The number of different orientations for P is O(m3) when the center of rotation is fixed. We give two incremental algorithms. The first one computes the Hamming distance in all orientations of P for all text positions in time O(m3n2). The second algorithm works in time O(k3/2n2) where k denotes the maximum allowed Hamming distance. The preprocessing time is in both cases O(m3 log m). We show that the number of different locations (rotation and translation) for P becomes O(m7) if the center of rotation of P is not fixed. We also develop a variant of the same algorithms for computing a lower bound of the Hamming distance in this general setting also. We give experimental results for both algorithms.
منابع مشابه
Inverse Maximum Dynamic Flow Problem under the Sum-Type Weighted Hamming Distance
Inverse maximum flow (IMDF), is among the most important problems in the field ofdynamic network flow, which has been considered the Euclidean norms measure in previousresearches. However, recent studies have mainly focused on the inverse problems under theHamming distance measure due to their practical and important applications. In this paper,we studies a general approach for handling the inv...
متن کاملMassively Parallel Algorithms and Hardness for Single-Linkage Clustering Under $\ell_p$-Distances
We present massively parallel (MPC) algorithms and hardness of approximation results for computing Single-Linkage Clustering of n input d-dimensional vectors under Hamming, `1, `2 and `∞ distances. All our algorithms run in O(logn) rounds of MPC for any fixed d and achieve (1 + )-approximation for all distances (except Hamming for which we show an exact algorithm). We also show constant-factor ...
متن کاملOn the inverse maximum perfect matching problem under the bottleneck-type Hamming distance
Given an undirected network G(V,A,c) and a perfect matching M of G, the inverse maximum perfect matching problem consists of modifying minimally the elements of c so that M becomes a maximum perfect matching with respect to the modified vector. In this article, we consider the inverse problem when the modifications are measured by the weighted bottleneck-type Hamming distance. We propose an alg...
متن کاملLow-complexity Chase-like bounded-distance decoding algorithms
A soft-decision decoder for an error-correcting block code of Hamming distance d is said to achieve boundeddistance (BD) decoding if its error-correction radius is equal to that of a complete Euclidean distance decoder. The Chase decoding algorithms are reliability-based algorithms achieving BD decoding. The least complex version of the original Chase algorithms (“Chase-3”) uses about d/2 trial...
متن کاملAnchor-Points Algorithms for Hamming and Edit Distances Using MapReduce
Algorithms for computing similarity joins in MapReduce were offered in [2]. Similarity joins ask to find input pairs that are within a certain distance d according to some distance measure. Here we explore the “anchor-points algorithm” of [2]. We continue looking at Hamming distance, and show that the method of that paper can be improved; in particular, if we want to find strings within Hamming...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1999